package com.jimmy.medical.repository;

import com.jimmy.medical.entity.SysCode;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysCodeRepository extends JpaSpecificationExecutor<SysCode>, PagingAndSortingRepository<SysCode, Long> {

    List<SysCode> findByCodeSortAndIsShowApp(String codeSort, String isShowApp);

    List<SysCode> findByCodeSort(String codeSort);

}
